package com.jxtc.enterprise.admin.vo;

import com.jxtc.enterprise.common.vo.CompanyVO;
import com.jxtc.enterprise.hr.vo.DepartmentVO;
import com.jxtc.enterprise.hr.vo.MealConfigVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 此vo 有更多的信息，用来记录 查看公司详情 按钮 弹窗中展示的数据，包括 多餐配置信息
 * 与 AdminCompanyDetailVO 区别是，后者用于记录 公司管理页面，列表中公司信息，属于公司简要信息
 */
@Schema(description = "更为详细的公司配置，包括多餐配置信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
public class AdminCompanyMoreDetailVO extends CompanyVO {

    @Schema(description = "公司地址", example = "南山区 xxx 园区 xx 栋 15 楼 1508")
    private String address;

    @Schema(description = "部门信息")
    private List<DepartmentVO> departments;

    @Schema(description = "是否开启自动充值", example = "false")
    private Boolean autoRecharge;

    @Schema(description = "低于多少自动充值", example = "20")
    private Integer threshold;

    @Schema(description = "自动充值的金额", example = "100")
    private Integer amount;

    @Schema(description = "HR 登录密码", example = "123456")
    private String password;

    @Schema(description = "是否已经停止供餐（停止供餐时该值为 true）", example = "false")
    private Boolean stopFlag;

    @Schema(description = "公司图片链接")
    private AdminCompanyImageVO images;

    @Schema(description = "公司选择了那些时段的餐")
    private List<MealConfigVO> mealTypes;
}
